#ifndef __GAMESCENE_H__
#define __GAMESCENE_H__

#include "cocos2d.h"
USING_NS_CC;

#define SCENE_NODE_FUNC_PARAM(scene,__PARAMTYPE__,__PARAM__) \
	static scene* node(__PARAMTYPE__ __PARAM__) \
{ \
	scene *pRet = new scene(); \
	if (pRet && pRet->init(__PARAM__)) \
{ \
	pRet->autorelease(); \
	return pRet; \
} \
	else \
{ \
	delete pRet; \
	pRet = NULL; \
	return NULL; \
} \
}; 

namespace suta
{
	class GameLayer;
	class GameScene:public CCScene
	{
	public:
		bool init(int level);
		SCENE_NODE_FUNC_PARAM(GameScene,int,level);
	};
}//namespace suta

#endif//__GAMESCENE_H__